using BasicData.API.Application.Command;
using BasicData.API.Dtos;
using BasicData.ErrorCode;
using System.Threading.Tasks;

namespace BasicData.API.Application.Mediator
{
    /// <summary>
    /// 用户中介者接口
    /// </summary>
    public interface IUserMediator
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="command">登录命令</param>
        /// <returns>登录结果</returns>
        Task<APIResult<UserDTO>> LoginAsync(LoginQueryCommand command);

        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="command">注册命令</param>
        /// <returns>注册结果</returns>
        Task<APIResult<UserDTO>> RegisterAsync(RegisterUserCommand command);
    }
} 